package ru.gitverse.deenyy.walp.model;

import jakarta.persistence.*;

@Entity
public class CalculationResult {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ManyToOne(cascade = CascadeType.ALL)
    private KLKRResult klkrResult;

    @ManyToOne(cascade = CascadeType.ALL)
    private KLKRResult betaResult;

    public CalculationResult() {
    }

    public CalculationResult(KLKRResult klkrResult, KLKRResult betaResult) {
        this.klkrResult = klkrResult;
        this.betaResult = betaResult;
    }

    // Getters and setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public KLKRResult getKlkrResult() {
        return klkrResult;
    }

    public void setKlkrResult(KLKRResult klkrResult) {
        this.klkrResult = klkrResult;
    }

    public KLKRResult getBetaResult() {
        return betaResult;
    }

    public void setBetaResult(KLKRResult betaResult) {
        this.betaResult = betaResult;
    }
}
